package com.mfangsoft.zhuangjialong.integration.taskpush.service.impl;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.integration.taskpush.mapper.BaseTaskPushMapper;
import com.mfangsoft.zhuangjialong.integration.taskpush.model.BaseTaskPush;
import com.mfangsoft.zhuangjialong.integration.taskpush.service.TaskPushService;



@Service
public class TaskPushServiceimpl implements TaskPushService {
	
	
	private static final Logger LOGGER = LoggerFactory.getLogger(TaskPushServiceimpl.class);


	@Autowired
	private BaseTaskPushMapper baseTaskPushMapper;


	@Override
	public void addTaskPush(BaseTaskPush baseTaskPush) {
		baseTaskPushMapper.addTaskPush(baseTaskPush);
	}

	@Override
	public void updateTaskPushOne(BaseTaskPush baseTaskPush) {
		baseTaskPushMapper.updateTaskPushOne(baseTaskPush);
	}


	@Override
	public void deleteTaskPushOne(int id) {
		baseTaskPushMapper.deleteTaskPushOne(id);
	}


	@Override
	public Page<BaseTaskPush> selectTaskPush(Page<BaseTaskPush> page) {

		page.setData(baseTaskPushMapper.selectTaskPush(page));
		return page;
	}

	
	
	
}
